<html>
<head>
    <style type="text/css">
        .box {
            border-top: 3px solid #ffffff;
        }

        #config-box div a.btn {
            color: #fff;
            text-decoration: none;
        }

        #config-box thead > tr > th.wdbt {
            width: 15%;
        }

        #config-box thead > tr > th.wd70 {
            width: 70%;
        }

        @media (max-width: 970px) {
            #config-box thead > tr > th.wdbt {
                width: 30%;
            }

            #config-box thead > tr > th.mob-none {
                display: none;
            }

            #config-box tbody > tr > td.mob-none {
                display: none;
            }
        }
    </style>
</head>
<body>
<div id="config-box">
    <div class="panel panel-default panel-intro">
        <div class="panel-heading">
            <div class="panel-lead"><em>服务策略（Service Policy）</em>用于管理服务策略栏目数据，启用英文后切换English管理英文数据
            </div>
            {if $switch_lang == '1'}
            <ul class="nav nav-tabs">
                <li class="active"><a href="#EditCN" data-toggle="tab">简体中文</a></li>
                <li class=""><a href="#EditEN" data-toggle="tab">English</a></li>
            </ul>
            {/if}
        </div>

        <div id="myTabContent" class="tab-content">
            <!-- 中文编辑表单 -->
            <div class="tab-pane fade active in" id="EditCN">
                <form id="aboutCN-form" class="edit-form form-horizontal" role="form"
                      data-toggle="validator" method="POST" action="{:url('Admin/wwh/Service/ServiceCN')}">
                    <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12" style="padding-left: 0; padding-right: 0;">
                        <div class="box {if $switch_lang == '1'}box-success{/if}">
                            <div class="panel-body">
                                <div class="alert alert-success-light">
                                    <b>服务策略</b><br>
                                </div>
                                <table class="table table-striped">
                                    <thead>
                                    <tr>
                                        <th class="wdbt">标题</th>
                                        <th class="wd70">值</th>
                                        <th width="15%" class="mob-none">变量名</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr>
                                        <td>内容</td>
                                        <td>
                                            <div class="row">
                                                <div class="col-sm-8 col-xs-12">
                                                    <textarea id="c-content" name="content" class="form-control editor" rows="5" name="content" cols="50">
                                                        {$dataCN.content|htmlentities}
                                                    </textarea>
                                                </div>
                                            </div>
                                        </td>
                                        <td class="mob-none">{literal}{$service.content}{/literal}</td>
                                    </tr>
                                    </tbody>
                                    <tfoot>
                                    <tr>
                                        <td></td>
                                        <td>
                                            <button type="submit" class="btn btn-success btn-embossed">{:__('OK')}
                                            </button>
                                            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}
                                            </button>
                                        </td>
                                        <td></td>
                                    </tr>
                                    </tfoot>
                                </table>

                            </div>
                        </div>
                    </div>
                </form>
            </div>

            <!-- 英文编辑表单 -->
            {if $switch_lang == '1'}
            <div class="tab-pane fade" id="EditEN">
                <form id="aboutEN-form" class="edit-form form-horizontal" role="form"
                      data-toggle="validator" method="POST" action="{:url('Admin/wwh/Service/ServiceEN')}">
                    <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12" style="padding-left: 0; padding-right: 0;">
                        <div class="box box-warning">
                            <div class="panel-body">
                                <div class="alert alert-danger-light">
                                    <b>服务策略</b><br>
                                </div>
                                <table class="table table-striped">
                                    <thead>
                                    <tr>
                                        <th class="wdbt">标题</th>
                                        <th class="wd70">值</th>
                                        <th width="15%" class="mob-none">变量名</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr>
                                        <td>内容</td>
                                        <td>
                                            <div class="row">
                                                <div class="col-sm-8 col-xs-12">
                                                    <textarea id="c-content_en" name="content" class="form-control editor" rows="5" name="content" cols="50">
                                                        {$dataEN.content|htmlentities}
                                                    </textarea>
                                                </div>
                                            </div>
                                        </td>
                                        <td class="mob-none">{literal}{$service.content}{/literal}</td>
                                    </tr>
                                    </tbody>
                                    <tfoot>
                                    <tr>
                                        <td></td>
                                        <td>
                                            <button type="submit" class="btn btn-success btn-embossed">{:__('OK')}
                                            </button>
                                            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}
                                            </button>
                                        </td>
                                        <td></td>
                                    </tr>
                                    </tfoot>
                                </table>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
            {/if}
        </div>

    </div>
</div>
</body>
</html>
